// pages/jobDescription/jobDescription.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    value: ''
  },
  /**
   * 生命周期函数--监听页面显示
   */
  onLoad (options) {
    console.log(options)
    this.setData({
      value: options.text
    })
  },

  back () {
    let pages = getCurrentPages()
    let prevPage = pages[pages.length - 2]
    prevPage.setData({
      'PubEmployment.jobDescription': this.data.value
    })
    wx.navigateBack({
      delta: 1
    })
  },

  inputChange (evevt) {
    let value = evevt.detail.value
    this.setData({
      value
    })
  }
})
